Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Date handling in Lotus Script
Feedback Type: Problem
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Application Development
Platform: Not Applicable
Release: 8.5.3
Reproducible: Always

Hello all,

I have a piece of script in an agent which takes a date in a document and add 1 or 3 days to it.
Compare it to today.

Set datum = New NotesDateTime(doc.logdatum(0))
If Weekday(Today) = 2 Then
Call datum.Adjustday(3)
Else
Call datum.Adjustday(1)
End If
If nu.Dateonly > datum.Dateonly Then
<etc>

In the last 2 days I have a strange problem with it. The date set in logdatum is 31-01-2012. Add 1 day and it says 01-02-2012.
The date of today is correct and says 31-01-2012.
But if I compare the date of today (nu) with the logdate (datum) then it says that the if statements returns TRUE but should be FALSE.

Can anyone explain this to me?

Regards,
Peter


Feedback number WEBB8R2N6V created by ~Lex Bubfooplopetsi on 01/31/2012

Status: Closed
Comments: Changed the comparison to:
If DateValue(nu.Dateonly) > DateValue(datum.Dateonly) Then

Date handling in Lotus Script (~Lex Bubfooplop... 31.Jan.12)
. . DateOnly = Text (~Bella Nimhipiv... 31.Jan.12)
. . . . Thanks! (~Lex Bubfooplop... 2.Feb.12)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS